package com.ad2campaign.engine.db.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ad2campaign.engine.db.model.Keystore;

public class KeystoreRowMapper implements RowMapper<Keystore> 
{

	@Override
	public Keystore mapRow(ResultSet rs, int rowNum) throws SQLException 
	{
		Keystore ks = new Keystore();
		ks.setKeystore(rs.getBlob("ios_filecontents"));
		ks.setPassword(rs.getString("ios_password"));
		ks.setAndroid_api_key(rs.getString("android_api_key"));
	 	return ks;
 	}

}
